package com.goodfox.web.biz.forest.entity;

import java.io.Serializable;

import com.goodfox.web.generic.provide.annotation.DbEntity;
import com.goodfox.web.generic.provide.annotation.DbField;

@DbEntity(comment="林地图片",table="WOODLAND_PHOTO")
public class WoodlandPhoto implements Serializable{
	@DbField(comment="林地图片ID",column="PHOTO_ID",pk=true,export=false,javaType="String",dataType="VARCHAR2",required=true,maxLength=50)
	private String photoId;

	@DbField(comment="林地ID",column="WOOD_ID",javaType="String",dataType="VARCHAR2",maxLength=50)
	private String woodId;

	@DbField(comment="图片名称",column="PHOTO_NAME",javaType="String",dataType="VARCHAR2",maxLength=100)
	private String photoName;

	@DbField(comment="图片路径",column="PHOTO_PATH",javaType="String",dataType="VARCHAR2",maxLength=200,required=true)
	private String photoPath;

	@DbField(comment="图片内容",column="PHOTO_BYTE",javaType="byte[]",dataType="BLOB",maxLength=4000)
	private byte[] photoByte;

	@DbField(comment="图片物理路径",direct=false,export=false,maxLength=200)
	private String realPath;

	public String getPhotoId(){
		return this.photoId;
	}
	public void setPhotoId(String photoId){
		this.photoId=photoId;
	}

	public String getWoodId(){
		return this.woodId;
	}
	public void setWoodId(String woodId){
		this.woodId=woodId;
	}

	public String getPhotoName(){
		return this.photoName;
	}
	public void setPhotoName(String photoName){
		this.photoName=photoName;
	}

	public String getPhotoPath(){
		return this.photoPath;
	}
	public void setPhotoPath(String photoPath){
		this.photoPath=photoPath;
	}

	public byte[] getPhotoByte(){
		return this.photoByte;
	}
	public void setPhotoByte(byte[] photoByte){
		this.photoByte=photoByte;
	}
	
	public String getRealPath() {
		return realPath;
	}
	public void setRealPath(String realPath) {
		this.realPath = realPath;
	}

}